using System;
using ns27;

namespace Triton.Game.Mapping
{
	[Attribute38("BoxDrawer")]
	public class BoxDrawer : MonoBehaviour
	{
		public enum State
		{
			CLOSED,
			CLOSED_BOX_OPENED,
			OPENED
		}

		public Box m_parent => method_3<Box>("m_parent");

		public BoxDrawerStateInfo m_info => method_3<BoxDrawerStateInfo>("m_info");

		public State m_state => method_2<State>("m_state");

		public BoxDrawer(IntPtr address, string className)
			: base(address, className)
		{
		}

		public BoxDrawer(IntPtr address)
			: this(address, "BoxDrawer")
		{
		}

		public Box GetParent()
		{
			return method_14<Box>("GetParent", Array.Empty<object>());
		}

		public void SetParent(Box parent)
		{
			method_8("SetParent", parent);
		}

		public BoxDrawerStateInfo GetInfo()
		{
			return method_14<BoxDrawerStateInfo>("GetInfo", Array.Empty<object>());
		}

		public void SetInfo(BoxDrawerStateInfo info)
		{
			method_8("SetInfo", info);
		}

		public bool ChangeState(State state)
		{
			return method_11<bool>("ChangeState", new object[1] { state });
		}

		public void UpdateState(State state)
		{
			method_8("UpdateState", state);
		}

		public bool IsInactiveState(State state)
		{
			return method_11<bool>("IsInactiveState", new object[1] { state });
		}

		public void OnClosedAnimFinished()
		{
			method_8("OnClosedAnimFinished");
		}

		public void OnClosedBoxOpenedAnimFinished()
		{
			method_8("OnClosedBoxOpenedAnimFinished");
		}

		public void OnOpenedAnimFinished()
		{
			method_8("OnOpenedAnimFinished");
		}
	}
}
